package TwoDay;

import java.util.Scanner;

public class noon2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入三个浮动型数");
        float v = scanner.nextFloat();
        float b = scanner.nextFloat();
        float z = scanner.nextFloat();
        System.out.printf("整数部分和");
        int i = ((int)v +(int) b +(int) z);
        System.out.println("i = " + i);
        System.out.printf("小数部分和");
        Float v1 = v - (int) v + b - (int) b + z - (int) z;
        System.out.println("v1 = " + v1);
    }
}
